import { createRouter, createWebHistory } from 'vue-router'

import { routes } from './routes'
import createRouteGuard from './guards'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

createRouteGuard(router)

export default router
